package com.alan.builder.standard;

/**
 * Created by Alan on 2018/8/22.
 */
public class Test {

    public static void main(String[] args) {
        Reservation.Builder builder = Reservation.newBuilder();
        builder.setName("zhangsan");
        Reservation reservation = builder.build();
        System.out.println(reservation.toString());

        Reservation.Builder builder2 = Reservation.newBuilder();
        builder2.setType("type2");
        Reservation reservation2 = builder2.build();
        System.out.println(reservation2.toString());
//        System.out.println(builder.build().toString());
    }
}
